WriteFile

Definition:

WriteFile(filename, string)

 

Description:

Append a string to a specified file.

 

Platforms:

Android, Universal Windows, Windows Desktop

 

Parameters:

filename - required

string - required

String containing text to be appended to file.

 

Returns:

"True"

Success

 

"False"

Failure. Calling GetLastError will return the error message: "Error reading/writing file".

 

Notes:

The file will be created if it doesn't exist already, so if you want to overwrite an existing file instead of appending data to it, you can delete the existing file first using the DeleteFile Method.